package com.zlj.controller;

import com.zlj.service.TestService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@Api(value = "测试框架类" , tags = "测试框架类")
@RestController
@CrossOrigin/*允许跨域请求*/
@RequestMapping("/test")
public class TestController {
    @Autowired
    private TestService testService;

    @ApiOperation(value = "查询数据")
    @GetMapping("showAllList")
    @ResponseBody
    public List<Map> showAllList(){
        return testService.showAllList();
    }
}
